package com.apeli;

import com.apeli.spring.SpringApplicationContext;
import com.apeli.use.Config;
import com.apeli.use.IUserService;
import com.apeli.use.OrderService;

import java.util.Arrays;

public class Test {
    public static void main(String[] args) throws InstantiationException, IllegalAccessException {

        SpringApplicationContext springApplicationContext = new SpringApplicationContext(Config.class);
        IUserService userService = (IUserService) springApplicationContext.getBean("userService");
        userService.test();
        System.out.println("==============================");
        OrderService orderService = (OrderService) springApplicationContext.getBean("orderService");
        System.out.println(orderService);

    }
}
